package com.lhb;

import com.lhb.common.utils.APPUtils;
import com.lhb.components.MainJFrame;
import com.lhb.mapper.LoginMapper;
import com.lhb.service.LoginJFrameService;
import org.springframework.boot.WebApplicationType;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.context.ApplicationContext;



@SpringBootApplication
public class StudentManagementApplication {



    public static void main(String[] args) {

        ApplicationContext applicationContext = new SpringApplicationBuilder(StudentManagementApplication.class).headless(false).web(WebApplicationType.NONE).run(args);
//        APPUtils appUtils = applicationContext.getBean(APPUtils.class);
//        appUtils.createAPP();
//        LoginMapper loginMapper = applicationContext.getBean(LoginMapper.class);
//        LoginJFrameService bean = applicationContext.getBean(LoginJFrameService.class);
//        System.out.println(bean);
//        System.out.println(loginMapper);
        MainJFrame mainJFrame = applicationContext.getBean(MainJFrame.class);
        mainJFrame.createMainJFrame();
    }

}
